package cn.hnucm.serchhbservice.utils;


import cn.hnucm.serchhbservice.dao.TbHbBasisDao;
import cn.hnucm.serchhbservice.entity.TbHbBasis;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringDataESProductDaoTest {
    @Autowired
    private TbHbBasisDao tbHbBasisDao;

    @Test
    public void save(){
        TbHbBasis tbHbBasis = new TbHbBasis();
        tbHbBasis.setHbId(12);
        tbHbBasis.setHbName("test");
        tbHbBasis.setHbIntroduction("test");
        tbHbBasis.setHbReleaseDeadlineDatetime("test");
        tbHbBasis.setHbFinishDeadlineDatetime("test");
        tbHbBasis.setHbReward((float) 5.5);
        tbHbBasis.setHbType("test");
        tbHbBasis.setHbReleaseDatetime("test");
        tbHbBasis.setHbReleaseUserid(12);
        tbHbBasisDao.save(tbHbBasis);
    }
}
